from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
#from django.contrib import admin
#admin.autodiscover()

urlpatterns = patterns('',
	(r'^$', 'labmin.webapp.views.main'),
	(r'^login$', 'labmin.webapp.views.login'),
	(r'^logout$', 'labmin.webapp.views.logout'),
    
	(r'^students_list$', 'labmin.webapp.views.students_list'),
	(r'^student_form$', 'labmin.webapp.views.student_form'),
	(r'^student_form/(?P<student_pk>\d+)$', 'labmin.webapp.views.student_form'),
	(r'^show_student/(?P<student_pk>\d+)$', 'labmin.webapp.views.show_student'),
	(r'^delete_students$', 'labmin.webapp.views.delete_students'),
	
	(r'^student_groups_list$', 'labmin.webapp.views.student_groups_list'),
	(r'^student_group_form$', 'labmin.webapp.views.student_group_form'),
	(r'^student_group_form/(?P<student_group_pk>\d+)$', 'labmin.webapp.views.student_group_form'),
	(r'^show_student_group/(?P<student_group_pk>\d+)$', 'labmin.webapp.views.show_student_group'),
	(r'^delete_student_group$', 'labmin.webapp.views.delete_student_group'),
	
	(r'^admins_list$', 'labmin.webapp.views.admins_list'),
    (r'^admin_form$', 'labmin.webapp.views.admin_form'),
    (r'^admin_form/(?P<admin_pk>\d+)$', 'labmin.webapp.views.admin_form'),
	(r'^show_admin/(?P<admin_pk>\d+)$', 'labmin.webapp.views.show_admin'),
	(r'^delete_admin$', 'labmin.webapp.views.delete_admin'),
	(r'^add_student_group_to_admin$', 'labmin.webapp.views.add_student_group_to_admin'),
	(r'^remove_student_group_from_admin$', 'labmin.webapp.views.remove_student_group_from_admin'),
	(r'^add_service_group_to_admin$', 'labmin.webapp.views.add_service_group_to_admin'),
	(r'^remove_service_group_from_admin$', 'labmin.webapp.views.remove_service_group_from_admin'),
	
	(r'^services_list$', 'labmin.webapp.views.services_list'),
    (r'^service_form$', 'labmin.webapp.views.service_form'),
    (r'^service_form/(?P<service_pk>\d+)$', 'labmin.webapp.views.service_form'),
	(r'^show_service/(?P<service_pk>\d+)$', 'labmin.webapp.views.show_service'),
	(r'^delete_services$', 'labmin.webapp.views.delete_services'),
	
	(r'^service_groups_list$', 'labmin.webapp.views.service_groups_list'),
	(r'^service_group_form$', 'labmin.webapp.views.service_group_form'),
	(r'^service_group_form/(?P<service_group_pk>\d+)$', 'labmin.webapp.views.service_group_form'),
	(r'^show_service_group/(?P<service_group_pk>\d+)$', 'labmin.webapp.views.show_service_group'),
	(r'^delete_service_group$', 'labmin.webapp.views.delete_service_group'),
	
	(r'^student_service_association_form$', 'labmin.webapp.views.student_service_association_form'),
	
	(r'^logs_list$', 'labmin.webapp.views.logs_list'),
    
	(r'^shell$', 'labmin.webapp.views.shell'),
	
	(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'G:/Upload/labmin/html/media/'}),
	
	(r'^scripts/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'G:/Upload/labmin/upload/scripts/'}),
	
	# Uncomment the next line to enable the admin:
    #(r'^admin/(.*)', admin.site.root),
	
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    #(r'^admin/doc/', include('django.contrib.admindocs.urls')),
)
